<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>修改栏目</title>
		<link href="css/table.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript">
			
	
	function ColumnAddSaveColumn(){
		var name = $("#name").val();
		if($.trim(name)==''||$.trim(name)=='null'){
			alert("请填写栏目名称");
			return;
		}
		$.post("columnUpdate.action",$("form").serialize(),function(data){
					if(data=='success'){
						alert("修改成功！");
						window.close();
						var currentPage=$("#currentPage").val();
						window.opener.page(currentPage);
					}else{
						alert("修改失败！");
					}
				});	
	}
		</script>
	</head>

	<body>
	<input type="hidden" id="currentPage" value="${currentPage}">
	<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
  <tbody>
  <tr>
    <td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
    <td style="background: url('image/wsoa_window_002.gif');"><table border="0" cellpadding="0" cellspacing="0">
      <tbody><tr>
        <td align="center" style="background: url('image/wsoa_window_002.gif');" width="10"><img src="image/center_19.gif"></td>
        <td align="center" style="background: url('image/wsoa_window_002.gif');"></td>
        <td>信息管理 &gt; 栏目管理 &gt; 栏目设置 &gt; <a href="columnById.action?columnId=${columnId }&currentPage=">修改</a></td>
        </tr>
    </tbody>
    </table></td>
    <td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
  </tr>
  <tr>
    <td style="background: url('image/wsoa_window_010.gif');"  width="1">&nbsp;</td>
    <td>
	<form action="" name="columnForm" method="post">
		<input type="hidden" name="column.id" value="${column.id}">
				<table >
					<tr>
						<td width="50px">
							栏目名称
						</td>
						<td>
							<input type="text" size="30"  id="name" style="height: 20px;" name="column.name" value="${ column.name}">
						</td>
					</tr>
				</table>
				<div style="margin-left: 75px; margin-top: 5px">
					<input class="button_04" type="button" value="添加" onclick="ColumnAddSaveColumn()" />
					&nbsp;&nbsp;
					<input class="button_04" type="button"
						onclick="window.close()"
						value="关闭" />
				</div>
		</form>
		
		 </td>
<td style="background: url('image/wsoa_window_006.gif');"  width="1">&nbsp;</td></tr>
  <tr>
    <td height="1" width="1"><img src="image/wsoa_window_009.gif" height="16" width="14"></td>
    <td style="background: url('image/wsoa_window_008.gif');" height="1"></td>
    <td height="1" width="1"><img src="image/wsoa_window_007.gif" height="16" width="12"></td>
  </tr>
</tbody>
</table>
	</body>
</html>